# 非空即True
# s1 = ' '
# print(bool(s1))

# s1 = ''  # 空字符串
# print(bool(s1))
#
# print(2 > 1)
# print(3 < 1)
# print(True)  # 是布尔值
# print('True')  # 是字符串
#
# s1 = '100'
# s2 = 100
# print(s1, type(s1))
# print(s2, type(s2))


# 数值里面，非0即是True
num1 = 0
num2 = 4
print(bool(num1))
print(bool(num2))
print(bool(-2))